package com.cdsf.kennedy.user.domain;

import com.cdsf.common.util.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Table(name = "T_USER_ROLE")
@ApiModel("用户对应角色")
public class UserRole extends BaseEntity implements Serializable {
    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 角色ID
     */
    @ApiModelProperty("角色ID")
    @Column(name = "ROLE_ID")
    private String roleId;

    public UserRole() {
    }

    public UserRole(String userId, String roleId, Date createTime) {
        this.userId = userId;
        this.roleId = roleId;
        super.setCreateTime(createTime);
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}